A series of fixed non-negative integer types.
Constructors
This crate provides a series of macros that used to construct fixed uints in compile time.
The input is a string literal, and the macros support several formats of the input:
- A decimal string.
- A binary string with
0b
prefix. - A octal string with
0o
prefix. - A hexadecimal string with
0x
prefix.
And you can use any number of _
in the string literal to separate it for more readable.
Examples
use ;
const U128_100: U128 = u128!;